/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package config.Models;

import config.ConfigMacros;
import java.util.Map;
import libCore.Util;

/**
 *
 * @author LinhTA
 */
public class Conf_Ibshop_item {
    
    public String entity;
    public String kind;
    public Require require;
    public Unblock unblock;
    
    public Conf_Ibshop_item ( Map<String,Object> obj)
    {
        entity = obj.get(ConfigMacros.SHOPITEM_ENTITY).toString();
        kind = obj.get(ConfigMacros.SHOPITEM_KIND).toString();
        require = new Require(Util.obj2Map(obj.get(ConfigMacros.SHOPITEM_REQUIRE)));
        unblock = new Unblock(Util.obj2Map(obj.get(ConfigMacros.SHOPITEM_UNBLOCK)));
    }
}
